package org.dtrd.modules.service.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.service.entity.po.DtrdRlPatientServiceDetail;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author QR
 * @since 2022-01-06
 */
@Getter
@Setter
@ApiModel(value = "详情")
public class PatientServiceDetail {

    private Integer dataId;

    @ApiModelProperty("患者id")
    private Integer patientId;

    @ApiModelProperty("服务包id")
    private Integer packageId;

    @ApiModelProperty("服务套餐id")
    private Integer serviceId;

    @ApiModelProperty("执行周期")
    private Integer period;

    @ApiModelProperty("完成情况, 0-未完成, 1-已完成")
    private Integer status;

    @ApiModelProperty("执行人")
    private String executor;

    @ApiModelProperty("完成时间")
    private Date finishedTime;

    @ApiModelProperty("备注")
    private String remark;




    public PatientServiceDetail parseFromPo(DtrdRlPatientServiceDetail po) {
        dataId = po.getDataId();
        patientId = po.getPatientId();
        packageId = po.getPackageId();
        serviceId = po.getServiceId();
        period = po.getPeriod();
        status = po.getStatus();
        executor = po.getExecutor();
        finishedTime = po.getFinishedTime();
        remark = po.getRemark();
        return this;
    }
}
